package shoppingmall.reception.dto;

import shoppingmall.reception.pojo.CommercialSpecification;
import shoppingmall.reception.pojo.Product;

/**
 * 商品订单数据参数类(将订单相关的信息返回给前端,主要在tb_commodity_order上添加商品和选择的规格信息)
 */
public class ProductOrderVO {
    private int id;  //订单主键id
    private String orderId;  //订单编号(服务端生成，唯一值)
    private int commodityId;  //该订单对应的商品id
    private Product productInfo;  //商品信息(新增)
    private int userId;  //该订单对应的用户id
    private int commodityStandardId;  //该订单中商品对应的规格id
    private CommercialSpecification productStandardInfo;  //商品规格信息(新增)
    private String commodityStandardStr;  //该订单中商品对应的规格描述
    private int commodityCount;  //该订单中对应的某商品数量
    private float orderTotalPrice;  //该订单对应总价
    private String orderState;  //订单状态
    private String linkUser;  //订单联系人
    private String linkPhone;  //订单联系人号码
    private String linkAddress;  //订单联系人地址
    private String logisticsInfo;  //订单物流信息
    private String orderRemark;  //订单备注
    private String createTime;  //订单创建时间
    private String updateTime;  //订单更新时间

    public ProductOrderVO() {
    }

    public ProductOrderVO(int id, String orderId, int commodityId, Product productInfo, int userId, int commodityStandardId, CommercialSpecification productStandardInfo, String commodityStandardStr, int commodityCount, float orderTotalPrice, String orderState, String linkUser, String linkPhone, String linkAddress, String logisticsInfo, String orderRemark, String createTime, String updateTime) {
        this.id = id;
        this.orderId = orderId;
        this.commodityId = commodityId;
        this.productInfo = productInfo;
        this.userId = userId;
        this.commodityStandardId = commodityStandardId;
        this.productStandardInfo = productStandardInfo;
        this.commodityStandardStr = commodityStandardStr;
        this.commodityCount = commodityCount;
        this.orderTotalPrice = orderTotalPrice;
        this.orderState = orderState;
        this.linkUser = linkUser;
        this.linkPhone = linkPhone;
        this.linkAddress = linkAddress;
        this.logisticsInfo = logisticsInfo;
        this.orderRemark = orderRemark;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(int commodityId) {
        this.commodityId = commodityId;
    }

    public Product getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(Product productInfo) {
        this.productInfo = productInfo;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getCommodityStandardId() {
        return commodityStandardId;
    }

    public void setCommodityStandardId(int commodityStandardId) {
        this.commodityStandardId = commodityStandardId;
    }

    public CommercialSpecification getProductStandardInfo() {
        return productStandardInfo;
    }

    public void setProductStandardInfo(CommercialSpecification productStandardInfo) {
        this.productStandardInfo = productStandardInfo;
    }

    public String getCommodityStandardStr() {
        return commodityStandardStr;
    }

    public void setCommodityStandardStr(String commodityStandardStr) {
        this.commodityStandardStr = commodityStandardStr;
    }

    public int getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(int commodityCount) {
        this.commodityCount = commodityCount;
    }

    public float getOrderTotalPrice() {
        return orderTotalPrice;
    }

    public void setOrderTotalPrice(float orderTotalPrice) {
        this.orderTotalPrice = orderTotalPrice;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getLinkUser() {
        return linkUser;
    }

    public void setLinkUser(String linkUser) {
        this.linkUser = linkUser;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getLinkAddress() {
        return linkAddress;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }

    public String getLogisticsInfo() {
        return logisticsInfo;
    }

    public void setLogisticsInfo(String logisticsInfo) {
        this.logisticsInfo = logisticsInfo;
    }

    public String getOrderRemark() {
        return orderRemark;
    }

    public void setOrderRemark(String orderRemark) {
        this.orderRemark = orderRemark;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
